/**
 * Created by zhangzhihao on 2016/12/06 11:00;
 */
var vm = new Vue({
	el : '#main',
	data : {
		taskId : App.getParam("taskId"),
		approve:{},
		approveData:{
			object:{},
		},
	},
	created : function() {
		this.queryTaskNodeApprove();
		var url = location.search;
		var url1 = url.split("&");
		var url2 = url1[1].split("=");
		var url3 = url2[1]   
		$("#vid").attr("src",url3);
	},
	methods : {
	    
        queryTaskNodeApprove:function(){
        	App.ajax({
    			type : "GET",
    			url : App.getApiUrl("queryTaskNodeApproveURL") + "?taskId="
    					+ this.taskId,
    			success : function(data) {
    				vm.approve = data;
    			}
    		});
        },

		 fanhui:function(url,taskId){
            window.location.href = App.getBaseUrl() + url + "?taskId=" + taskId;
        },
	}
});